package demo;

public class Student {
    public String name;
    public int age;
    public String gender;
    public int score;
    private static String classRoom;

    {
        this.name = "张三";
        this.age = 20;
        this.gender = "男";
        this.score = 100;
    }
    static{
        classRoom = "教4 A507";
    }
    public static String getClassRoom(){
        return classRoom;
    }
    @Override
    public String toString(){
        return "姓名： " + name +" 年龄： " + age + " 性别： " + gender +" 分数： "+ score;
    }

    public static void main(String[] args) {
        Student student = new Student();
        System.out.println(Student.getClassRoom());
    }
}
